package com.yxhl.zoume.data.http.repository.updateapp;

import com.yxhl.zoume.data.http.rest.param.CheckUpdateParam;
import com.yxhl.zoume.data.http.rest.response.login.CheckUpdateResponse;

import okhttp3.ResponseBody;
import rx.Observable;

/**
 * Created by sugarya on 16/5/13.
 */
public interface UpdateAppRepository {

    /**
     * 新版本检测
     *
     * @param param
     * @return
     */
    Observable<CheckUpdateResponse> checkUpdate(CheckUpdateParam param);

    /**
     * 下载App
     *
     * @param fileUrl
     * @return
     */
    Observable<ResponseBody> downloadApp(String fileUrl);

}
